package com.lottery.exception;

public enum ErrorCode implements IBaseCode {
    SUCCESS("200", "success"),
    ERROR_INTERNAL("500", "internal error"),
    ERROR_NULL("501", "null error");

    private String code;
    private String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
